package cn.com.connext.scrm.config;

/**
 * Application constants.
 */
public final class Constants {

    //Regex for acceptable logins
    public static final String LOGIN_REGEX = "^[_'.@A-Za-z0-9-]*$";
    /**
     * 小程序配置
     */
    public final static String APPID = "wx0807f7bb6a4de316";
    public final static String SECRET = "4c9ec5b668844069a1e01093cef26932";
    public final static String MINIPROGRAM_STATE = "trial";
    public static final String MERCHANTID = "1612505750";

    /**
     * crm测试环境
     */
    public final static String CRMAPPID = "cl033716f31845f7d";
    public final static String CRMSECRET = "1f8d3316a7adc6fc9b07e2b1af24ffe9cd8b32a0";

    /**
     *crm测试环境---订阅消息----奖品过期提醒
     */
    public final static String EXPIRETEMPLATEID = "BvxH845aWxlXViur4g_U1jpPSHHAMXskL276UEsVTpo8";

    /**
     *crm正式环境---订阅消息----奖品过期提醒
     */
    // public final static String EXPIRETEMPLATEID = "0KnpMoLWLG84annRZTkXM2lmBhkCPXHEvFhkoeioZ1w";

    /**
     *crm测试环境---订阅消息----mdm助力模板消息
     */
    public final static String MDMTEMPLATEID = "xjiBlX9oYD-JIFkfjav-xV6bTluYTdc0ybnfJV0L9WQ";

    /**
     *crm正式环境---订阅消息----mdm助力模板消息
     */
    // public final static String MDMTEMPLATEID = "BvxH845aWxlXViur4g_U1jpPSHHAMXskL276UEsVTpo";


    /**
     * crm正式环境
     */
//    public final static String CRMAPPID = "cl03a5171c9994728";
//    public final static String CRMSECRET = "bd0bab3b960b1b9af0f46331efcfd79a7dacd48e";


//    正式小程序配置
//    public final static String APPID = "wxa87521d6d5c4bf4b";
//    public final static String SECRET = "e8730c54c625adc891f5d015686e458e";
//    public final static String MINIPROGRAM_STATE = "formal";
    /**
     * 获取小程序token路径
     */
    public final static String GetAccessTokenUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";


    public final static String WxMsgCheckUrl = "https://api.weixin.qq.com/wxa/msg_sec_check?access_token=ACCESS_TOKEN";

    public final static String WxImageCheckUrl = "https://api.weixin.qq.com/wxa/img_sec_check?access_token=ACCESS_TOKEN";

    /**
     * 三方token
     */
    public final static String API_COMPONENT_TOKEN = "https://api.weixin.qq.com/cgi-bin/component/api_component_token";

    /**
     * 预授权码
     */
    public final static String Api_Create_Preauthcode = "https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token=COMPONENT_ACCESS_TOKEN";

    /**
     * 三方授权
     */
    public final static String BindComponent = "https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&auth_type=3&no_scan=1&component_appid=COMPONENT_APPID&pre_auth_code=PRE_AUTH_CODE&redirect_uri=REDIRECT_URL&auth_type=3";

    /**
     * 三方获取授权信息
     */
    public final static String Api_Query_Auth = "https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token=COMPONENT_ACCESS_TOKEN";

    public final static String Api_Authorizer_Token = "https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=COMPONENT_ACCESS_TOKEN";

    /**
     * crm 授权
     */
    public final static String GetCRMAccessTokenUrl = "https://sapi.convertlab.com/security/accesstoken?grant_type=client_credentials&appid=CRMAPPID&secret=CRMSECRET";

    /**
     * 积分
     */
    public final static String PointDecr = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIP/point/decr?access_token=ACCESSTOKEN";

    public final static String PointIncr = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIP/point/incr?access_token=ACCESSTOKEN";

    public final static String PointList = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIP/point?rows=ROWS&page=PAGE&sord=desc&needTotal=true&access_token=ACCESSTOKEN";


    /**
     * 修改会员信息url
     */
    public final static String MemberInfoUpdateUrl = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIPID?access_token=ACCESS_TOKEN&forceUpdate=false";
    /**
     * 修改会员手机号url
     */
    public final static String MemberMobileUpdateUrl = "https://sapi.convertlab.com/loyalty/v1/membershipService/updateMobile?access_token=ACCESS_TOKEN";

    /**
     * 查询会员url
     */
    public final static String FINDMemberInfoByMembershipIdUrl = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIPID?access_token=ACCESS_TOKEN";

    /**
     * 根据会员身份查询会员信息
     */
    public final static String GetMembershipByIdentityUrl = "https://sapi.convertlab.com/loyalty/v1/membershipService/getMembershipByIdentity?access_token=ACCESS_TOKEN&type=TYPE&value=VALUE";

    /**
     * 获取会员成长值
     */
    public final static String GetExpChangeLogstUrl = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIPID/exp/changeLogs?access_token=ACCESS_TOKEN&sord=desc";

    /**
     * 获取会员有效日期
     */
    public final static String GetMembershipLevelChangeLogsUrl = "https://sapi.convertlab.com/loyalty/v1/membershipLevelChangeLogs/MEMBERSHIPID?access_token=ACCESS_TOKEN";

    /**
     * 获取会员成长值经验列表
     */
    public final static String QueryExperienceUrl = "https://sapi.convertlab.com/loyalty/v1/settings/level/rules?access_token=ACCESS_TOKEN";

    /**
     * 获取优惠卷列表
     */
    public final static String QueryCoupon = "https://sapi.convertlab.com/loyalty/v1/membership/MEMBERSHIPID/coupon?access_token=ACCESS_TOKEN";

    /**
     * 优惠卷
     */
    //public final static String CouponList = "http://youzanrt_test.dmhub.biz/crm/getAllCoupon?access_token=ACCESSTOKEN";
    public final static String CouponList = "http://diageoyouzan.xiaoshu.biz/crm/getAllCoupon?access_token=ACCESSTOKEN";

    /**
     * 会员注册url http://diageo-jd.dmhub.biz
     */
    //public final static String MemberInfoSaveUrl = "http://youzanrt_test.dmhub.biz/crm/onlineMembership?access_token=ACCESS_TOKEN";
    public final static String MemberInfoSaveUrl = "http://diageoyouzan.xiaoshu.biz/crm/onlineMembership?access_token=ACCESS_TOKEN";
    /**
     * 旺电通参数sid
     */
    public final static String wdtsid = "apidevnew2";
    /**
     * 旺电通参数appkey
     */
    public final static String wdtAppkey = "kangerxin2-test";
    /**
     * 旺电通参数appsecret
     */
    public final static String wdtAppsecret = "12345";
    /**
     * 旺电通测试环境参数url
     */
    public final static String wdtTestUrl = "https://sandbox.wangdian.cn/openapi2";
    /**
     * 旺电通测试环境推送订单参数baseUrl
     */
    public final static String wdtTradePushBaseUrl = "https://sandbox.wangdian.cn/openapi2/trade_push.php";
    /**
     * 物流测试环境信息查询与同步参数baseUrl
     */
    public final static String wdtLogisticsSyncQueryBaseUrl = "https://sandbox.wangdian.cn/openapi2/logistics_sync_query.php";
    /**
     * 物流测试环境信息同步
     */
    public final static String wdtLogisticsSyncAckBaseUrl = "https://sandbox.wangdian.cn/openapi2/logistics_sync_ack.php";

    /**
     * 腾讯广告数据上报测试初次认证应用回调地址
     */
    public final static String redirectUriFst = "http://lovewhisky.gechentech.com/gateway/note-service/api/marketing/getOauth";
    /**
     * 腾讯广告数据上报测试应用回调地址
     */
    public final static String redirectUri = "http://lovewhisky.gechentech.com/gateway/note-service/api/marketing/getAuthorizationCode";
    /**
     * 腾讯广告数据上报生产应用回调地址
     */
//    public final static String redirectUri = "https://wxadmin.singlemalts.com.cn/gateway/note-service/api/marketing/getOauth";
    /**
     * 腾讯广告数据上报生产初次认证应用回调地址
     */
//    public final static String redirectUriFst = "https://wxadmin.singlemalts.com.cn/gateway/note-service/api/marketing/getAuthorizationCode";

    /**
     * 未中奖图片url
     */
    public final static String NOT_HAVE_PRIZE_IMG_URL = "https://wechat.singlemalts.com.cn/mpresource/new-crm/notHavePrize.png";
    /**
     * 天臣测试环境查询接口
     * */
    public final static String GET_NUM_BY_REEL_CODE = "http://101.231.106.162:9104/HennessyRFID/api/integral/getNumByReelCode";

    /**
     * 天臣正式环境查询接口
     * */
    //public final static String GET_NUM_BY_REEL_CODE = "http://106.14.143.195:8080/HennessyRFID/api/integral/getNumByReelCode";

    /**
     * 旺电通正式环境参数url
     */
    //public final static String wdtTestUrl = "https://api.wangdian.cn/openapi2";
    /**
     * 旺电通正式环境推送订单参数baseUrl
     */
    //public final static String wdtTradePushBaseUrl = "https://api.wangdian.cn/openapi2/trade_push.php";
    /**
     * 物流正式环境信息查询与同步参数baseUrl
     */
    //public final static String wdtLogisticsSyncQueryBaseUrl = "https://api.wangdian.cn/openapi2/logistics_sync_query.php";
    /**
     * 物流正式环境信息同步
     */
    //public final static String wdtLogisticsSyncAckBaseUrl = "https://api.wangdian.cn/openapi2/logistics_sync_ack.php";

    private Constants() {
    }
}
